//
//  MyPopoverController.swift
//  weibo08
//
//  Created by 陈杰明 on 16/3/4.
//  Copyright © 2016年 JM. All rights reserved.
//

import UIKit

class MyPopoverController: UITableViewController {
   private let reuseIdentifier = "cell"
    let data = ["首页", "好友圈", "群微博", "我的微博", "新浪微博"]
    
    override func viewDidLoad() {
        super.viewDidLoad()

        tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: reuseIdentifier)
    }
    
    
    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return data.count
    }
    
    override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        
        let cell = tableView.dequeueReusableCellWithIdentifier(reuseIdentifier, forIndexPath: indexPath)
        
        cell.textLabel?.text = data[indexPath.row]
        
        return cell
    }
}
